package com.kun.lagou.dao;

import com.kun.lagou.entity.User;
import org.springframework.data.repository.Repository;

/**
 * @author Administrator
 */
public interface UserRepository extends Repository<User, Long> {
    /**
     * 根据姓名查用户
     * @param username
     * @return
     */
    User findByUsername(String username);
}
